package net._708s.logmanager.domain;

import java.io.Serializable;
import java.util.Date;

public class Log implements Serializable{
	private static final long serialVersionUID = 1L;
	private String id;
	private String type;
	private String message;
	private String source;
	private Date date;
	
	
	public Log() {
	}
	/**
	 * 
	 * @param id
	 * @param type
	 * @param message
	 * @param source
	 * @param date
	 */
	public Log(String id, String type, String message, String source, Date date) {
		this.id = id;
		this.type = type;
		this.message = message;
		this.source = source;
		this.date = date;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	public boolean legal(){
		if(id != null){
			return true;
		}
		return false;
		
	}
	

}
